package com.xgjweb.fsi.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.xgjweb.common.action.XgjWebAction;
import com.xgjweb.fsi.domain.Sign;
import com.xgjweb.fsi.service.ISignService;

/**
 * 
 * @author xgj
 * 
 */
public class SignAction extends XgjWebAction {
	ISignService signService;

	public void setSignService(ISignService signService) {
		this.signService = signService;
	}

	/**
	 * 删除
	 */
	public Boolean deleteSign(Sign sign) throws Exception {
		return signService.deleteSign(sign);
	}

	/**
	 * 查找
	 */
	public Sign findSign(Sign sign) throws Exception {
		return null;
	}

	/**
	 * 查询
	 */
	public List<Sign> querySign() throws Exception {
		return signService.querySign();
	}

	/**
	 * 上传
	 */
	public ActionForward uploadFile(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		signService.uploadFile(mapping, form, request, response);
		return null;
	}

}
